<?php
$currDate = date("d", strtotime("tomorrow"));
echo $this->render('includes/top.phtml');?>
<!-- ...................... Header ...................... -->

<div id="header-bottom">
	<div id="header-bg">			
			
<!-- ...................... Page Title and Search Box ...................... -->					
		<div id="title-bar">
			<h1>Eventos de campa&ntilde;a</h1>
		</div>
		
		<div class="clear"></div>
<!-- ...................... End Page Title and Search Box ...................... -->	
		
	</div>  <!-- #header-bg -->
</div>  <!-- #header-bottom -->	
<!-- ...................... End Header ...................... -->

<!-- ...................... Container & Content ...................... -->	
<div id="container">	
	<div id="content">	
	
		<div class="two-third">
			<div class="home-latest-news">
				<h4>Agenda de Alejandro L&oacute;pez Caballero</h4>
                <ul>
           		<?php foreach ($this->eventos as $ea) { 
                	if($currDate != date("d", strtotime($ea["fecha"])) ){ ?>
                    <li style="width:500px;">                         
                        <div class="news-date"><?php echo date("d", strtotime($ea["fecha"])); ?><span><?php echo date("M", strtotime($ea["fecha"])); ?></span></div>
                        <?php
                        	$currDate = date("d", strtotime($ea["fecha"]));
						}else{ ?>
                            <div>&nbsp;</div>
                        <?php } ?>
                        <h4><b><?php echo date("H:i", strtotime($ea["hora"]))." hrs."; ?></b>&nbsp;<a href="/eventos/index/id/<?php echo $ea["id"]; ?>"><?php echo $ea["titulo"]; ?></a></h4>
                        <p><?php echo $ea["lugar"]; ?></p>
                    <?php } ?>
                	</li>
                </ul>
                <div class="clear"></div>
			</div>
		</div> <!-- .two-third -->
        
<?php echo $this->render('includes/sidebar.phtml');?>

	<div class="clear"></div>		
		
	</div> <!-- #content -->
</div> <!-- #container -->	
<!-- ...................... End Container & Content ...................... -->

<?php echo $this->render('includes/footer.phtml');?>
        